#include "menu.h"


key_table table[17]=
{
	{0,0,0,1,(*fun_0)},
    
    //?1?
    {1,4,2, 5,(*fun_a1)},
    {2,1,3, 9,(*fun_b1)},
    {3,2,4,13,(*fun_c1)},       
    {4,3,1, 0,(*fun_d1)},
    
    //?2?
    {5,8,6,5,(*fun_a21)},                  
    {6,5,7,6,(*fun_a22)},
    {7,6,8,7,(*fun_a23)},                                          
    {8,7,5, 1,(*fun_a24)},
    
    { 9,12,10,9,(*fun_b21)},                   
    {10, 9,11,10,(*fun_b22)},
    {11,10,12,11,(*fun_b23)},                                           
    {12,11, 9, 2,(*fun_b24)},
    
    {13,16,14,13,(*fun_c21)},                   
    {14,13,15,14,(*fun_c22)},                                   
    {15,14,16,15,(*fun_c23)},                                   
    {16,15,13, 3,(*fun_c24)},
      
};

void fun_0(void)
{
	LCD_ShowString(10,0,"menu",BLACK,WHITE,16,0);
	LCD_ShowString(100,0,"<",BLACK,WHITE,16,0);
}
void fun_a1(void)
{
	LCD_Fill(90,0,110,80,WHITE);
	LCD_ShowString(100,10,"<",BLACK,WHITE,16,0);
	LCD_ShowString(10,10,"music",BLACK,WHITE,16,0);
	LCD_ShowString(10,26,"weather",BLACK,WHITE,16,0);
	LCD_ShowString(10,42,"text",BLACK,WHITE,16,0);
	LCD_ShowString(10,58,"return",BLACK,WHITE,16,0);
}
void fun_b1(void)
{
	LCD_Fill(90,0,110,80,WHITE);
	LCD_ShowString(100,26,"<",BLACK,WHITE,16,0);
	LCD_ShowString(10,10,"music",BLACK,WHITE,16,0);
	LCD_ShowString(10,26,"weather",BLACK,WHITE,16,0);
	LCD_ShowString(10,42,"text",BLACK,WHITE,16,0);
	LCD_ShowString(10,58,"return",BLACK,WHITE,16,0);
}

void fun_c1(void)
{
	LCD_Fill(90,0,110,80,WHITE);
	LCD_ShowString(100,42,"<",BLACK,WHITE,16,0);
	LCD_ShowString(10,10,"music",BLACK,WHITE,16,0);
	LCD_ShowString(10,26,"weather",BLACK,WHITE,16,0);
	LCD_ShowString(10,42,"text",BLACK,WHITE,16,0);
	LCD_ShowString(10,58,"return",BLACK,WHITE,16,0);
}

void fun_d1(void)
{
	LCD_Fill(90,0,110,80,WHITE);
	LCD_ShowString(100,58,"<",BLACK,WHITE,16,0);
	LCD_ShowString(10,10,"music",BLACK,WHITE,16,0);
	LCD_ShowString(10,26,"weather",BLACK,WHITE,16,0);
	LCD_ShowString(10,42,"text",BLACK,WHITE,16,0);
	LCD_ShowString(10,58,"return",BLACK,WHITE,16,0);
}

void fun_a21(void)
{
	LCD_Fill(90,0,110,80,WHITE);
	LCD_ShowString(100,10,"<",BLACK,WHITE,16,0);
	LCD_ShowString(10,10,"music1",BLACK,WHITE,16,0);
	LCD_ShowString(10,26,"music2",BLACK,WHITE,16,0);
	LCD_ShowString(10,42,"music3",BLACK,WHITE,16,0);
	LCD_ShowString(10,58,"return",BLACK,WHITE,16,0);
}

void fun_a22(void)
{
	LCD_Fill(90,0,110,80,WHITE);
	LCD_ShowString(100,26,"<",BLACK,WHITE,16,0);
	LCD_ShowString(10,10,"music1",BLACK,WHITE,16,0);
	LCD_ShowString(10,26,"music2",BLACK,WHITE,16,0);
	LCD_ShowString(10,42,"music3",BLACK,WHITE,16,0);
	LCD_ShowString(10,58,"return",BLACK,WHITE,16,0);
}
void fun_a23(void)
{
	LCD_Fill(90,0,110,80,WHITE);
	LCD_ShowString(100,42,"<",BLACK,WHITE,16,0);
	LCD_ShowString(10,10,"music1",BLACK,WHITE,16,0);
	LCD_ShowString(10,26,"music2",BLACK,WHITE,16,0);
	LCD_ShowString(10,42,"music3",BLACK,WHITE,16,0);
	LCD_ShowString(10,58,"return",BLACK,WHITE,16,0);
}
void fun_a24(void)
{
	LCD_Fill(90,0,110,80,WHITE);
	LCD_ShowString(100,58,"<",BLACK,WHITE,16,0);
	LCD_ShowString(10,10,"music1",BLACK,WHITE,16,0);
	LCD_ShowString(10,26,"music2",BLACK,WHITE,16,0);
	LCD_ShowString(10,42,"music3",BLACK,WHITE,16,0);
	LCD_ShowString(10,58,"return",BLACK,WHITE,16,0);
}
void fun_b21(void)
{
	LCD_Fill(90,0,110,80,WHITE);
	LCD_ShowString(100,10,"<",BLACK,WHITE,16,0);
	LCD_ShowString(10,10,"sunny",BLACK,WHITE,16,0);
	LCD_ShowString(10,26,"rainy",BLACK,WHITE,16,0);
	LCD_ShowString(10,42,"cloud",BLACK,WHITE,16,0);
	LCD_ShowString(10,58,"return",BLACK,WHITE,16,0);
}
void fun_b22(void)
{
	LCD_Fill(90,0,110,80,WHITE);
	LCD_ShowString(100,26,"<",BLACK,WHITE,16,0);
	LCD_ShowString(10,10,"sunny",BLACK,WHITE,16,0);
	LCD_ShowString(10,26,"rainy",BLACK,WHITE,16,0);
	LCD_ShowString(10,42,"cloud",BLACK,WHITE,16,0);
	LCD_ShowString(10,58,"return",BLACK,WHITE,16,0);
}
void fun_b23(void)
{
	LCD_Fill(90,0,110,80,WHITE);
	LCD_ShowString(100,42,"<",BLACK,WHITE,16,0);
	LCD_ShowString(10,10,"sunny",BLACK,WHITE,16,0);
	LCD_ShowString(10,26,"rainy",BLACK,WHITE,16,0);
	LCD_ShowString(10,42,"cloud",BLACK,WHITE,16,0);
	LCD_ShowString(10,58,"return",BLACK,WHITE,16,0);
}
void fun_b24(void)
{
	LCD_Fill(90,0,110,80,WHITE);
	LCD_ShowString(100,58,"<",BLACK,WHITE,16,0);
	LCD_ShowString(10,10,"sunny",BLACK,WHITE,16,0);
	LCD_ShowString(10,26,"rainy",BLACK,WHITE,16,0);
	LCD_ShowString(10,42,"cloud",BLACK,WHITE,16,0);
	LCD_ShowString(10,58,"return",BLACK,WHITE,16,0);
}
void fun_c21(void)
{
	LCD_Fill(90,0,110,80,WHITE);
	LCD_ShowString(100,10,"<",BLACK,WHITE,16,0);
	LCD_ShowString(10,10,"text1",BLACK,WHITE,16,0);
	LCD_ShowString(10,26,"text2",BLACK,WHITE,16,0);
	LCD_ShowString(10,42,"text3",BLACK,WHITE,16,0);
	LCD_ShowString(10,58,"return",BLACK,WHITE,16,0);
}
void fun_c22(void)
{
	LCD_Fill(90,0,110,80,WHITE);
	LCD_ShowString(100,26,"<",BLACK,WHITE,16,0);
	LCD_ShowString(10,10,"text1",BLACK,WHITE,16,0);
	LCD_ShowString(10,26,"text2",BLACK,WHITE,16,0);
	LCD_ShowString(10,42,"text3",BLACK,WHITE,16,0);
	LCD_ShowString(10,58,"return",BLACK,WHITE,16,0);
}
void fun_c23(void)
{
	LCD_Fill(90,0,110,80,WHITE);
	LCD_ShowString(100,42,"<",BLACK,WHITE,16,0);
	LCD_ShowString(10,10,"text1",BLACK,WHITE,16,0);
	LCD_ShowString(10,26,"text2",BLACK,WHITE,16,0);
	LCD_ShowString(10,42,"text3",BLACK,WHITE,16,0);
	LCD_ShowString(10,58,"return",BLACK,WHITE,16,0);
}
void fun_c24(void)
{
	LCD_Fill(90,0,110,80,WHITE);
	LCD_ShowString(100,58,"<",BLACK,WHITE,16,0);
	LCD_ShowString(10,10,"text1",BLACK,WHITE,16,0);
	LCD_ShowString(10,26,"text2",BLACK,WHITE,16,0);
	LCD_ShowString(10,42,"text3",BLACK,WHITE,16,0);
	LCD_ShowString(10,58,"return",BLACK,WHITE,16,0);
}
